﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileManager.aspx.cs" Inherits="Admin_FileManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Manager Themes Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Selected="True" Value="css">Chọn style</asp:ListItem>
                    <asp:ListItem Value="js">Javascript</asp:ListItem>
                    <asp:ListItem Value="txt">Text</asp:ListItem>
                    <asp:ListItem Value="xml">XML</asp:ListItem>
                    <asp:ListItem Value="ascx">Webpart Control</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Duyệt" />
                <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="Tạo file mới" Visible="False" />
                <asp:GridView ID="GridView1" DataMember="Path" runat="server" AutoGenerateColumns="false" OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="path" HeaderText="Source path" />
                        <asp:ButtonField Text="Edit" CommandName="MyEdit" />
                        <asp:ButtonField Text="Delete" CommandName="MyDelete" />
                    </Columns>
                </asp:GridView>
        
                <div runat="server" id="divEdit" visible="false">
                    <br />
                    <asp:TextBox ID="txtpath" runat="server" Width="100%" Font-Bold="true"></asp:TextBox>
                    <asp:TextBox ID="ContentEdit" Runat="server" TextMode="multiLine" Height="400" Width="100%" BackColor="#cccccc" BorderWidth="0"></asp:TextBox>
                    <br />
                    <asp:Button ID="Button2" runat="server" Text="Save" OnClick="Button2_Click" />
                    <asp:Button ID="Button3" runat="server" Text="Cancel" OnClick="Button3_Click" />
                </div>
            </div>
        </form>
    </body>
</html>